package com.earthchen.demo.dto;

import javax.validation.constraints.NotEmpty;

/**
 * 角色资源
 *
 * @author earthchen
 * @date 2018/9/6
 **/
public class AuthorityRoleResourceDTO {

    @NotEmpty
    private Long roleId;

    @NotEmpty
    private Long resourceId;

    public AuthorityRoleResourceDTO() {
    }

    public AuthorityRoleResourceDTO(Long roleId, Long resourceId) {
        this.roleId = roleId;
        this.resourceId = resourceId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getResourceId() {
        return resourceId;
    }

    public void setResourceId(Long resourceId) {
        this.resourceId = resourceId;
    }

    @Override
    public String toString() {
        return "AuthorityRoleResourceDTO{" +
                "roleId=" + roleId +
                ", resourceId=" + resourceId +
                '}';
    }
}
